<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
    <CodeSnippet Format="1.0.0">
        <Header>
            <Title>Property With Change Event</Title>
            <Shortcut>vmpropl</Shortcut>
            <Description>Code snippet for property that calls OnPropertyChanged and XML description</Description>
            <Author>SLaks</Author>
            <SnippetTypes>
                <SnippetType>Expansion</SnippetType>
            </SnippetTypes>
        </Header>
        <Snippet>
            <Declarations>
                <Literal>
                    <ID>type</ID>
                    <ToolTip>Property type</ToolTip>
                    <Default>string</Default>
                </Literal>
                <Literal>
                    <ID>property</ID>
                    <ToolTip>Property name</ToolTip>
                    <Default>MyProperty</Default>
                </Literal>
                <Literal>
                    <ID>model</ID>
                    <ToolTip>Model Property</ToolTip>
                    <Default>BaseProperty</Default>
                </Literal>
            </Declarations>
            <Code Language="csharp">
                  <![CDATA[public $type$ $property$ {
                get 
						{ 
							if (_$property$ == null)
								_$property$ = ($type$)SettingsManager.Lists[typeof($type$)][Model.$model$];
							return $field$;  
						}
                set 
				        { 
					        if (_$property$ == value) return;
					        _$property$ = value; 
					        OnPropertyChanged("$property$"); 
				        }
            }
            private $type$ _$property$;
            $end$]]></Code>
        </Snippet>
    </CodeSnippet>
</CodeSnippets>